import request from '@/utils/request'

// 全部演出
export const getPerforms = () => {
  return request.get('/perform/getAll', {})
}

// 全部演出
export const getPerformByCityId = (cityId) => {
  return request.get(`/perform/getByUserCity/${cityId}`, {})
}
// 创建演出
export const createperform = (obj) => request.post('perform/create', obj)
// 删除演出
export const deleteperform = (id) => request.post(`perform/delete/${id}`)
// 修改演出
export const updateperform = (obj) => request.post('/perform/update', obj)

export const getPerformByPage = (pageNum, pageSize) =>
  request.get(`/perform/getPage/${pageNum}/${pageSize}`)

export const getPerformById = (id) => request.get(`/perform/get/${id}`)
